package demo.value;
public final class boxedLongHelper
	implements org.omg.CORBA.portable.BoxedValueHelper
{
	private static org.omg.CORBA.TypeCode _type = org.omg.CORBA.ORB.init().create_value_box_tc(demo.value.boxedLongHelper.id(),"boxedLong",org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)));
	public static void insert (final org.omg.CORBA.Any any, final demo.value.boxedLong s)
	{
		org.omg.CORBA.portable.OutputStream out = any.create_output_stream ();
		any.type (type ());
		write (out, s);
		any.read_value (out.create_input_stream (), type ());
	}

	public static demo.value.boxedLong extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static org.omg.CORBA.TypeCode type()
	{
		return _type;
	}
	public static String id()
	{
		return "IDL:boxedLong:1.0";
	}
	public static demo.value.boxedLong read (final org.omg.CORBA.portable.InputStream in)
	{
		demo.value.boxedLong result = new demo.value.boxedLong(in.read_long());
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final demo.value.boxedLong s)
	{
		out.write_long(s.value);
	}
	public java.io.Serializable read_value (final org.omg.CORBA.portable.InputStream is)
	{
		return demo.value.boxedLongHelper.read (is);
	}
	public void write_value (final org.omg.CORBA.portable.OutputStream os, final java.io.Serializable value)
	{
		demo.value.boxedLongHelper.write (os, (demo.value.boxedLong)value);
	}
	public java.lang.String get_id()
	{
		return demo.value.boxedLongHelper.id();
	}
}
